package mytomcat.servlet;

import mytomcat.core.MyRequest;
import mytomcat.core.MyResponse;
import mytomcat.servlet.base.MyServlet;

import java.io.IOException;

/**
 * @author swc
 * @date 2020/4/20 0020 下午 14:11
 */
public class ErrorServlet extends MyServlet {

    @Override
    public void doGet(MyRequest myRequest, MyResponse myResponse) {
        try {
            myResponse.write("this url not found ....");
        }catch (IOException ex){
            ex.printStackTrace();
        }
    }

    public void doPost(MyRequest myRequest, MyResponse myResponse) {
        try {
            myResponse.write("this url not found ....");
        }catch (IOException ex){
            ex.printStackTrace();
        }
    }
}
